﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;

namespace ECard.Controllers
{
    public class ConnectDatabase
    {
        private static SqlConnection conn;
        public static SqlConnection GetConnection()
        {
            string strConn = System.Configuration.ConfigurationManager.ConnectionStrings["strConn"].ConnectionString;
            conn = new SqlConnection(strConn);
            return conn;
        }
    }
}